@import './variables.scss';
@import './theme.scss';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  color: $text-regular;
  background-color: $background-color;
}

#app {
  height: 100%;
}

.page-container {
  padding: $spacing-base;
  min-height: calc(100vh - 60px);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-shadow {
  box-shadow: $box-shadow-light;
  border-radius: $border-radius-base;
  background-color: $background-white;
  transition: all 0.3s ease;
  
  &:hover {
    box-shadow: $box-shadow-base;
  }
}

.text-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.clickable {
  cursor: pointer;
  user-select: none;
  
  &:hover {
    opacity: 0.8;
  }
  
  &:active {
    opacity: 0.6;
  }
} 